package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeisPatientOtherInfoId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientOtherInfoId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String healthAssessment;
	private String behavioralModelAssessment;
	private String healthRiskFactors;
	private Integer healthplanId;
	private String comboType;
	private String behavioralModelType;
	private String healthManager;
	private String treatPlan;
	private Integer idPatient;
	private Timestamp recordtime;
	private String healthmanageType;
	private String unnormalStr;

	// Constructors

	/** default constructor */
	public PeisPatientOtherInfoId() {
	}

	/** minimal constructor */
	public PeisPatientOtherInfoId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientOtherInfoId(Integer id, String healthAssessment,
			String behavioralModelAssessment, String healthRiskFactors,
			Integer healthplanId, String comboType, String behavioralModelType,
			String healthManager, String treatPlan, Integer idPatient,
			Timestamp recordtime, String healthmanageType, String unnormalStr) {
		this.id = id;
		this.healthAssessment = healthAssessment;
		this.behavioralModelAssessment = behavioralModelAssessment;
		this.healthRiskFactors = healthRiskFactors;
		this.healthplanId = healthplanId;
		this.comboType = comboType;
		this.behavioralModelType = behavioralModelType;
		this.healthManager = healthManager;
		this.treatPlan = treatPlan;
		this.idPatient = idPatient;
		this.recordtime = recordtime;
		this.healthmanageType = healthmanageType;
		this.unnormalStr = unnormalStr;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getHealthAssessment() {
		return this.healthAssessment;
	}

	public void setHealthAssessment(String healthAssessment) {
		this.healthAssessment = healthAssessment;
	}

	public String getBehavioralModelAssessment() {
		return this.behavioralModelAssessment;
	}

	public void setBehavioralModelAssessment(String behavioralModelAssessment) {
		this.behavioralModelAssessment = behavioralModelAssessment;
	}

	public String getHealthRiskFactors() {
		return this.healthRiskFactors;
	}

	public void setHealthRiskFactors(String healthRiskFactors) {
		this.healthRiskFactors = healthRiskFactors;
	}

	public Integer getHealthplanId() {
		return this.healthplanId;
	}

	public void setHealthplanId(Integer healthplanId) {
		this.healthplanId = healthplanId;
	}

	public String getComboType() {
		return this.comboType;
	}

	public void setComboType(String comboType) {
		this.comboType = comboType;
	}

	public String getBehavioralModelType() {
		return this.behavioralModelType;
	}

	public void setBehavioralModelType(String behavioralModelType) {
		this.behavioralModelType = behavioralModelType;
	}

	public String getHealthManager() {
		return this.healthManager;
	}

	public void setHealthManager(String healthManager) {
		this.healthManager = healthManager;
	}

	public String getTreatPlan() {
		return this.treatPlan;
	}

	public void setTreatPlan(String treatPlan) {
		this.treatPlan = treatPlan;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public Timestamp getRecordtime() {
		return this.recordtime;
	}

	public void setRecordtime(Timestamp recordtime) {
		this.recordtime = recordtime;
	}

	public String getHealthmanageType() {
		return this.healthmanageType;
	}

	public void setHealthmanageType(String healthmanageType) {
		this.healthmanageType = healthmanageType;
	}

	public String getUnnormalStr() {
		return this.unnormalStr;
	}

	public void setUnnormalStr(String unnormalStr) {
		this.unnormalStr = unnormalStr;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientOtherInfoId))
			return false;
		PeisPatientOtherInfoId castOther = (PeisPatientOtherInfoId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getHealthAssessment() == castOther
						.getHealthAssessment()) || (this.getHealthAssessment() != null
						&& castOther.getHealthAssessment() != null && this
						.getHealthAssessment().equals(
								castOther.getHealthAssessment())))
				&& ((this.getBehavioralModelAssessment() == castOther
						.getBehavioralModelAssessment()) || (this
						.getBehavioralModelAssessment() != null
						&& castOther.getBehavioralModelAssessment() != null && this
						.getBehavioralModelAssessment().equals(
								castOther.getBehavioralModelAssessment())))
				&& ((this.getHealthRiskFactors() == castOther
						.getHealthRiskFactors()) || (this
						.getHealthRiskFactors() != null
						&& castOther.getHealthRiskFactors() != null && this
						.getHealthRiskFactors().equals(
								castOther.getHealthRiskFactors())))
				&& ((this.getHealthplanId() == castOther.getHealthplanId()) || (this
						.getHealthplanId() != null
						&& castOther.getHealthplanId() != null && this
						.getHealthplanId().equals(castOther.getHealthplanId())))
				&& ((this.getComboType() == castOther.getComboType()) || (this
						.getComboType() != null
						&& castOther.getComboType() != null && this
						.getComboType().equals(castOther.getComboType())))
				&& ((this.getBehavioralModelType() == castOther
						.getBehavioralModelType()) || (this
						.getBehavioralModelType() != null
						&& castOther.getBehavioralModelType() != null && this
						.getBehavioralModelType().equals(
								castOther.getBehavioralModelType())))
				&& ((this.getHealthManager() == castOther.getHealthManager()) || (this
						.getHealthManager() != null
						&& castOther.getHealthManager() != null && this
						.getHealthManager()
						.equals(castOther.getHealthManager())))
				&& ((this.getTreatPlan() == castOther.getTreatPlan()) || (this
						.getTreatPlan() != null
						&& castOther.getTreatPlan() != null && this
						.getTreatPlan().equals(castOther.getTreatPlan())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())))
				&& ((this.getRecordtime() == castOther.getRecordtime()) || (this
						.getRecordtime() != null
						&& castOther.getRecordtime() != null && this
						.getRecordtime().equals(castOther.getRecordtime())))
				&& ((this.getHealthmanageType() == castOther
						.getHealthmanageType()) || (this.getHealthmanageType() != null
						&& castOther.getHealthmanageType() != null && this
						.getHealthmanageType().equals(
								castOther.getHealthmanageType())))
				&& ((this.getUnnormalStr() == castOther.getUnnormalStr()) || (this
						.getUnnormalStr() != null
						&& castOther.getUnnormalStr() != null && this
						.getUnnormalStr().equals(castOther.getUnnormalStr())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getHealthAssessment() == null ? 0 : this
						.getHealthAssessment().hashCode());
		result = 37
				* result
				+ (getBehavioralModelAssessment() == null ? 0 : this
						.getBehavioralModelAssessment().hashCode());
		result = 37
				* result
				+ (getHealthRiskFactors() == null ? 0 : this
						.getHealthRiskFactors().hashCode());
		result = 37
				* result
				+ (getHealthplanId() == null ? 0 : this.getHealthplanId()
						.hashCode());
		result = 37 * result
				+ (getComboType() == null ? 0 : this.getComboType().hashCode());
		result = 37
				* result
				+ (getBehavioralModelType() == null ? 0 : this
						.getBehavioralModelType().hashCode());
		result = 37
				* result
				+ (getHealthManager() == null ? 0 : this.getHealthManager()
						.hashCode());
		result = 37 * result
				+ (getTreatPlan() == null ? 0 : this.getTreatPlan().hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		result = 37
				* result
				+ (getRecordtime() == null ? 0 : this.getRecordtime()
						.hashCode());
		result = 37
				* result
				+ (getHealthmanageType() == null ? 0 : this
						.getHealthmanageType().hashCode());
		result = 37
				* result
				+ (getUnnormalStr() == null ? 0 : this.getUnnormalStr()
						.hashCode());
		return result;
	}

}